package com.minelx.serverandclient.connector;

import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;

public class Tubes implements ITubes {

	private final InputStream in;

	private final OutputStream out;

	public Tubes(InputStream in, OutputStream out) {
		this.in = in;
		this.out = out;
	}

	@Override
	public InputStream in() {
		return in;
	}

	@Override
	public OutputStream out() {
		return out;
	}

	@Override
	public void close() throws IOException {
		in.close();
		out.close();
	}
}
